package com.wyd.wenyongdaAdmin.commons.model.admin.dict.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@EqualsAndHashCode
@ToString
public class DictDTO implements Serializable {
    private static final long serialVersionUID = 3448599787781410757L;

    private Long id;
    /**
     * 字典名称
     */
    @NotBlank(message = "字典名称不为空")
    private String name;

    /**
     * 字典类型
     */
    @NotBlank(message = "字典类型不为空")
    private String type;

    /**
     * 备注
     */
    private String description;

    private Integer isEnabled;
}
